package com.fatcat.easybuy.service;


import com.fatcat.easybuy.pojo.EasyBuyUser;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
* @author Fatcat
* @description 针对表【easybuy_user】的数据库操作Service
* @createDate 2025-09-10 11:10:26
*/
public interface EasyBuyUserService {

    //根据登录名查询用户
    EasyBuyUser getUserByLoginName(String loginName);
    //根据邮箱查询用户
    EasyBuyUser getUserByEmail(String email);

    //注册
    boolean addUser(EasyBuyUser easyBuyUser);

    //根据id查询用户
    EasyBuyUser getUserById(Long id);

    //更新用户
    boolean updateUser(EasyBuyUser easyBuyUser);

    //删除用户
    boolean deleteUser(Long id);

    //查询所有用户
    PageInfo<EasyBuyUser> getAllUser(Map<String, Object> params);
    //修改密码
    boolean updatePassword(Map<String, Object> params);
    //用户修改邮箱
    boolean updateEmail(Map<String, Object> params);
}
